package com.hkyp.ss.course.web.dto.request;


import com.hkyp.ss.course.apis.dto.request.base.BaseRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 用于添加评论和回复的点赞记录
 *
 *
 */
@Data
public class WebCommentLikeDTO extends BaseRequestDTO {




//    @ApiModelProperty(value = "评论或回复的id")
//    @NotNull(message = "不能为null")
//    private Long cid;



    @ApiModelProperty(value = "type =  1 对评论的点赞  2 对回复的点赞")
    @NotNull(message = "不能为null")
    @Max(value = 2,message = "字段超出限制（1-2）")
    @Min(value = 1,message = "字段超出限制（1-2）")
    private Integer type;

    @ApiModelProperty(value = "action =  1 点赞 0 取消")
    @NotNull(message = "不能为null")
    @Max(value = 1,message = "字段超出限制")
    @Min(value = 0,message = "字段超出限制")
    private Integer action;



}
